<?php
namespace app\service;

use app\model\Order;

class InsOrderTotalService
{

    public function page($data)
    {
    	$where 	= [];

    	//封装where查询条件
    	// empty($data['type']) 	|| $where['type'] 	= 	$data['type'];
    	// empty($data['author'])	|| $where['author']		= 	['like','%'.$data['author'] ];
    	// empty($data['sn'])		|| $where['sn'] 		= 	$data['sn'];
    	$where['res'] 		= 	'';
        $order = new Order();
        $result  = $order->getOrderCount();
        return $result;
        return Order::where($where)->paginate(10);     
    }

}
